<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>font-class方式引入图标</title>
    <link rel="stylesheet" href="../font/iconfont.css">
    <style>
        .row1{
            height: 400px;
            background-color: antiquewhite;
            line-height: 400px;
        }
        .icon-row1 {
            font-size: 30px;
            color: red;
            float: left;
        }
    </style>
</head>

<body>
    <div>
        <p class="row1">
            <i class="iconfont icon-child icon-row1"></i>
            不要学编程
        </p>
    </div>
</body>

</html>